﻿using System;
using ORS.OrderRobot.ServiceContracts.Dtos;

namespace ORS.OrderRobot.ServiceContracts
{
	public interface IFlightInfoService
	{
		/// <summary>
		/// 录入或修改
		/// </summary>
		/// <param name="input"></param>
		/// <returns></returns>
		Task CreateOrUpdateAsync(FlightInfoDto input);
		/// <summary>
		/// 获取取货商店编号
		/// </summary>
		/// <param name="airlineCode">航空公司编码</param>
		/// <param name="flightNo">航班号</param>
		/// <returns></returns>
		Task<FlightInfoDto?> GetFlightInfo(string airlineCode, string flightNo);
		/// <summary>
		/// 获取列表
		/// </summary>
		/// <param name="input"></param>
		/// <returns></returns>
		Task<List<FlightInfoDto>> GetList(GetAirlineInput input);
		/// <summary>
		/// 从远程接口同步
		/// </summary>
		/// <returns></returns>
		Task<int> SyncFromRemote();
	}
}
